package net.whzjkj.gateway.core.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: Mr.Hu
 * @create: 2018-11-05 20:37
 **/
@Slf4j

public abstract class AbstractServerHandler extends ChannelInboundHandlerAdapter {

    @Override
    public abstract void channelRegistered(ChannelHandlerContext ctx) throws Exception;

    @Override
    public abstract void channelUnregistered(ChannelHandlerContext ctx) throws Exception;

    @Override
    public abstract void channelActive(ChannelHandlerContext ctx) throws Exception;

    @Override
    public abstract void channelInactive(ChannelHandlerContext ctx) throws Exception;

    @Override
    public abstract void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception;

    @Override
    public abstract void channelReadComplete(ChannelHandlerContext ctx) throws Exception;

    @Override
    public abstract void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception;

    @Override
    public abstract void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception;

    @Override
    public abstract void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;
}
